package com.rimi.lzhg.service.impl;

import com.rimi.lzhg.dao.FeedbackMapper;
import com.rimi.lzhg.entry.Feedback;
import com.rimi.lzhg.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FeedbackImpl implements FeedbackService {

    @Autowired
    private FeedbackMapper feedbackMapper;

    @Override
    public boolean saveFeedbackService(Feedback feedback) {
        int insert = feedbackMapper.insert(feedback);
        if(insert>0){
            return true;
        }
        return false;
    }

    @Override
    public List<Feedback> getFeedbackList() {
        return feedbackMapper.selectByExample(null);
    }
}
